home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / rettig.arc / TRSOURCE.EXE / ISDSDATE.C < prev    next >
C/C++ Source or Header  |  1990-10-22  |  465b  |  24 lines

  1. /*********
  2. *
  3. * ISDSDATE.C
  4. *
  5. * by Tom Rettig
  6. *
  7. * Placed in the public domain by Tom Rettig Associates, 10/22/1990.
  8. *
  9. * Syntax: ISDSDATE( <date string> )
  10. * Return: True if <date string> is a valid date, otherwise False
  11. * Note  : <date string> is <expC> in the DTOS() format "YYYYMMDD"
  12. ********/
  13.  
  14. #include "trlib.h"
  15.  
  16. TRTYPE isdsdate()
  17. {
  18.    if ( PCOUNT == 1 && ISCHAR(1) )
  19.       _retl( _tr_isdsvalid(_parc(1)) );
  20.    else
  21.       _retl( FALSE );
  22. }
  23.  
  24.